package yamen.bdwm.datastruct;

import yamen.bdwm.R;
import yamen.bdwm.data.WmMyData;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class WmToptenItem extends WmItem {
    public String boardNameEng;
    public String boardNameChs;
    
    
    

	@Override
	public View getView(View superView, LayoutInflater mLayoutInflater,
			int mResource, View convertView, ViewGroup parent) {
		if(superView==null)
			superView=super.getView(superView, mLayoutInflater, mResource, convertView, parent);
		TextView tv=(TextView) superView.findViewById(R.id.item_boardname_chs_tv);
		if(tv!=null)
			tv.setText(this.boardNameChs);
		tv=(TextView) superView.findViewById(R.id.item_index_tv);
		if(tv!=null)
		{
			tv.setText(String.valueOf(this.id));
			if(WmMyData.is_iTopTen)
				tv.setTextColor(superView.getResources().getColor(R.color.red));
			else
				tv.setTextColor(superView.getResources().getColor(R.color.boardname_color));
			tv.setVisibility(View.VISIBLE);
		}
		return superView;
	}
}
